<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center educationDetails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub educationDetails_fd0_0'>
          <view class='flex flex-wrap align-center educationDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  educationDetails_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='educationDetails_fd0_0_c1_c0'>{{$t('我的活动')}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end educationDetails_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout educationDetails_flex_1">
        <view class='flex flex-wrap align-center educationDetails_fd1_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/wode/detailsLogin/detailsLogin?id=${educationDetails.events.aid}`">
          <image class='educationDetails_fd1_0_c0' mode="aspectFill" :src='educationDetails.events.img'></image>
          <view class='flex flex-direction flex-wrap align-stretch flex-sub educationDetails_fd1_0_c1'>
            <text class='educationDetails_fd1_0_c1_c0'>{{educationDetails.events.title}}</text>
            <view class='flex flex-wrap align-center educationDetails_fd1_0_c1_c1'>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{$t('地点')}}：</text>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{educationDetails.events.address}}</text>
            </view>
            <view class='flex flex-wrap align-center educationDetails_fd1_0_c1_c1'>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{$t('活动时间')}}：</text>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{educationDetails.events.stime}}</text>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{$t('至')}}</text>
              <text class='educationDetails_fd1_0_c1_c1_c0'>{{educationDetails.events.end_time}}</text>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch educationDetails_fd1_1'>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c0'>
            <text class='educationDetails_fd1_1_c0_c0'>{{$t('功德主信息')}}</text>
          </view>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c1'>
            <text class='educationDetails_fd1_1_c1_c0'>{{$t('姓名')}}</text>
            <text class='educationDetails_fd1_1_c1_c1'>{{educationDetails.true_name}}</text>
          </view>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c1'>
            <text class='educationDetails_fd1_1_c1_c0'>{{$t('联系方式')}}</text>
            <text class='educationDetails_fd1_1_c1_c1'>{{educationDetails.mobile}}</text>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch educationDetails_fd1_1'>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c0'>
            <text class='educationDetails_fd1_1_c0_c0'>{{$t('付款信息')}}</text>
          </view>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c1'>
            <text class='educationDetails_fd1_1_c1_c0'>{{$t('付款金额')}}</text>
            <text class='educationDetails_fd1_1_c1_c1'>$</text>
            <text class='educationDetails_fd1_1_c1_c1'>{{educationDetails.money}}</text>
          </view>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c1' v-if="educationDetails.pay_type_name">
            <text class='educationDetails_fd1_1_c1_c0'>{{$t('支付方式')}}</text>
            <text class='educationDetails_fd1_1_c1_c1'>{{educationDetails.pay_type_name}}</text>
          </view>
          <view class='flex flex-wrap align-center educationDetails_fd1_1_c1' v-if="educationDetails.pay_time">
            <text class='educationDetails_fd1_1_c1_c0'>{{$t('支付时间')}}</text>
            <text class='educationDetails_fd1_1_c1_c1'>{{educationDetails.pay_time}}</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "educationDetails": {
          "aid": "",
          "eventsinfo_title": "",
          "order_sn": "",
          "true_name": "",
          "money": "",
          "mobile": "",
          "group_name": "",
          "pay_time": "",
          "pay_stauts": "",
          "pay_type": "",
          "eventsinfo_id": "",
          "events": {
            "aid": "",
            "title": "",
            "address": "",
            "start_time": "",
            "end_time": "",
            "check_status": "",
            "text": "",
            "img": "",
            "money": ""
          }
        },
        "id": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        id
      } = options
      if (id !== undefined) this.id = id
      this.getDetailsFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取教育详情
      async getDetailsFunc() {
        //请求方法
        //数据验证
        // post65600915d02ca   教育详情  post656039818ae41
        let dataeducationDetails = await this.$api.get(global.apiUrls.post65601a36666ba, {
          aid: this.id
        });

        if (dataeducationDetails.data.code != 1) {
          this.$message.info(dataeducationDetails.data.msg);
          return
        }
        let infoeducationDetails = dataeducationDetails.data;
        this.educationDetails = infoeducationDetails.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .educationDetails_flex_0 {
    border-bottom: 1px solid #eee;
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .educationDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .educationDetails_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .educationDetails_fd0_0_c0 {
    width: 120rpx;
  }

  .educationDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .educationDetails_flex_1 {
    padding: 32rpx 32rpx 0rpx 32rpx;
  }

  .educationDetails_fd1_1_c1_c1 {
    color: #333333;
    font-size: 26rpx;
    font-weight: 400;
    line-height: 42rpx;
  }

  .educationDetails_fd1_1_c1_c0 {
    color: #999999;
    font-size: 26rpx;
    font-weight: 400;
    line-height: 42rpx;
    width: 113rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .educationDetails_fd1_1_c1 {
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .educationDetails_fd1_1_c0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 42rpx;
  }

  .educationDetails_fd1_1_c0 {
    border-bottom: 1px solid #eee;
    padding: 0rpx 0rpx 24rpx 0rpx;
  }

  .educationDetails_fd1_1 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    margin: 0rpx 0rpx 24rpx 0rpx;
    padding: 32rpx 24rpx 32rpx 24rpx;
  }

  .educationDetails_fd1_0_c1_c1_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 36rpx;
  }

  .educationDetails_fd1_0_c1_c1 {
    margin: 6rpx 0rpx 0rpx 0rpx;
  }

  .educationDetails_fd1_0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 42rpx;
  }

  .educationDetails_fd1_0_c1 {
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .educationDetails_fd1_0_c0 {
    width: 160rpx;
    height: 160rpx;
    border-radius: 24rpx;
  }

  .educationDetails_fd1_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    padding: 32rpx 24rpx 32rpx 24rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }
</style>
